laravel group by created_at date only

59

laravel group by created_at date only -

//Laravel ⛳

DB::table('table_name')
  ->select('*',DB::raw('DATE(created_at) as date'))
  ->get()->groupBy('date');

Comments

Submit
0 Comments